package com.yunji.order.dto.cmd;

import com.yunji.order.domain.OrderDO;
import com.yunji.order.emuns.OrderCancelTypeEnum;
import com.yunji.order.emuns.OrderStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author : peter-zhu
 * @date : 2025/3/20 09:46
 * @description : TODO
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class OrderCancelCommandDTO extends OrderCommandDTO{
    private OrderCancelTypeEnum closeTypeEnum;

    public OrderCancelCommandDTO(OrderDO orderDO, OrderStatusEnum newStatus, OrderCancelTypeEnum closeTypeEnum) {
        super(orderDO, newStatus);
        this.closeTypeEnum = closeTypeEnum;
    }
}
